package src.com.foreknow.demo2;

public class Information {
    public static void main(String[] args) {
        //姓名
        String name ="AAA";
        //性别
        char sex ='男';
        //年龄
        int age = 25;
        //所在学校
        String school = "DR";
        //爱好
        String hobby = "BOOK";
        //婚否
        boolean isMarry = false;
        //成绩
        double score = 95.8;
        //薪水
        double salary = 4561.92;

        //任何基本数据类型与字符串连接（+）最终的类型都是字符串
        String  aa = name+age;
        System.out.println(aa);

        String newStr = "姓名：" + name + "性别：" + sex + "年龄：" + age;
        System.out.println(newStr);
        System.out.println("姓名："+name+"性别："+sex+"年龄："+age+"所在学校："+school+"爱好："+hobby+"婚否："+isMarry+"成绩："+score+"薪水："+salary
);

        double newDouble= age + score;
        System.out.println(age + score);

    }
}
